<div class="layui-form-item">
    <label class="layui-form-label"><?php echo $field['title']; ?></label>
    <div class="layui-input-block">
        <input type="checkbox" name="{$field['name']}" lay-skin="switch">
    </div>
</div>